{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[  1.   2.   3.   4.   5.   6.   7.   8.   9.  10.  11.  12.  13.  14.  15.]\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAD8CAYAAAB+UHOxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4xLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvAOZPmwAAEXFJREFUeJzt3X2MZXV9x/H3x12gVbBiWKzsLt3VLFawCjoildg2KrKiYfuQtktapLWRpgELhj4ANrW2sTFWsTalGiqrNiVuqazttsHiakmNicDObldhGSkTUBnZyhqskJpCF7/94x7qZZmHOzrDmZnf+5Xc7Lnfc87c75mdOZ/5nYd7U1VIktrztL4bkCT1wwCQpEYZAJLUKANAkhplAEhSowwASWqUASBJjTIAJKlRBoAkNWp13w3M5rjjjqsNGzb03YYkLSt79uz5ZlWtmWu5JR0AGzZsYHx8vO82JGlZSfLVUZbzEJAkNcoAkKRGGQCS1CgDQJIataRPAktSM5LZ5y/CZ7c4ApCkRhkAktQoA0CSGmUASFKjDABJapQBIEmNMgAkqVFzBkCS9UluTjKRZH+SS7r6S5J8IcntSf4pyTOH1rkiyWSSu5KcPVTf3NUmk1y+OJskSRrFKCOAQ8BlVfVC4AzgoiQnAx8GLq+qnwA+CfwuQDdvK3AKsBn4qySrkqwCrgZeD5wMnNctK0nqwZwBUFUHqmpvN/0wMAGsBV4AfK5bbBfwC930FmB7VT1SVfcCk8Dp3WOyqu6pqkeB7d2ykqQezOscQJINwGnArcAdwLndrF8E1nfTa4H7hlab6moz1SVJPRg5AJIcDdwAXFpVDwFvZnA4aA9wDPDo44tOs3rNUj/8dS5MMp5k/ODBg6O2J0map5HeDC7JEQx2/tdV1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BbYDW3ruaUZVdaCq9nbTDzPYQa3tt6uZJVkHvAH4cN+9zCXJM4GfAq4FqKpHq+q/+u1qVquBH06yGng6cH/P/TxBVX0OePCw8hbgY930x4CffUqbmsF0vVbVp6vqUPf0FmDdU97YDGb43gK8H/g9YFFO1q7EAFgL3Df0fIolvEMdlmQDcBpwa7+dzOrPGfxAfrfvRkbwPOAg8JHukNWHkzyj76amU1VfB97L4C+9A8C3q+rT/XY1kudU1QEY/DEDHN9zP6N6M/CpvpuYTZJzga9X1RcX6zVWYgBkmtqSv9QpydHADcClVfVQ3/1MJ8kbgQeqak/fvYxoNfBS4INVdRrw3yydQxRP0B073wJsBE4AnpHkV/vtamVK8nYGh16v67uXmSR5OvB24A8X83VWYgBMAeuHnq9jiQ2lD5fkCAY7/+uqakff/cziTODcJF9hcGjt1Un+tt+WZjUFTFXV4yOqTzAIhKXotcC9VXWwqv4X2AG8sueeRvGNJM8F6P59oOd+ZpXkAuCNwK/U0r4G/vkM/hj4Yvf7tg7Ym+RHF/JFVmIA7AY2JdmY5EgGJ9J29tzTjJKEwTHqiaq6qu9+ZlNVV1TVuqrawOD7+q9VtWT/Sq2q/wTuS/KCrvQa4M4eW5rN14Azkjy9+5l4DUv0hPVhdgIXdNMXAP/YYy+zSrIZ+H3g3Kr6Tt/9zKaqbq+q46tqQ/f7NgW8tPuZXjArLgC6kzwXAzcx+AW6vqr299vVrM4Ezmfw1/S+7nFO302tIG8FrkvyJeBU4E977mda3SjlE8Be4HYGv5tL6q7VJB8HvgC8IMlUkt8A3g2cleRuBlervLvPHh83Q69/CRwD7Op+zz7Ua5NDZuh38V93aY+CJEmLZcWNACRJozEAJKlRBoAkNcoAkKRGGQCS1CgDQJIaZQBIUqMMAElq1P8ByCrIPapHPskAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x117797c88>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import tensorflow as tf\n",
    "import numpy as np\n",
    "import matplotlib.pyplot as plt\n",
    "date = np.linspace(1,15,15)\n",
    "endPrice = np.array([2511.90,2538.26,2510.68,2591.66,2732.98,2701.69,2701.29,2678.67,2726.50,2681.50,2739.17,2715.07,2823.58,2864.90,2919.08]\n",
    ")\n",
    "beginPrice = np.array([2438.71,2500.88,2534.95,2512.52,2594.04,2743.26,2697.47,2695.24,2678.23,2722.13,2674.93,2744.13,2717.46,2832.73,2877.40])\n",
    "print(date)\n",
    "plt.figure()\n",
    "for i in range(0,15):\n",
    "    # 1 柱状图\n",
    "    dateOne = np.zeros([2])\n",
    "    dateOne[0] = i;\n",
    "    dateOne[1] = i;\n",
    "    priceOne = np.zeros([2])\n",
    "    priceOne[0] = beginPrice[i]\n",
    "    priceOne[1] = endPrice[i]\n",
    "    if endPrice[i]>beginPrice[i]:\n",
    "        plt.plot(dateOne,priceOne,'r',lw=8)\n",
    "    else:\n",
    "        plt.plot(dateOne,priceOne,'g',lw=8)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
